import request from '@/utils/request'

// 查询月票列表
export function listPass(query) {
  return request({
    url: '/pass/pass/list',
    method: 'get',
    params: query
  })
}

// 查询月票详细
export function getPass(id) {
  return request({
    url: '/pass/pass/' + id,
    method: 'get'
  })
}

// 新增月票
export function addPass(data) {
  return request({
    url: '/pass/pass',
    method: 'post',
    data: data
  })
}

// 修改月票
export function updatePass(data) {
  return request({
    url: '/pass/pass',
    method: 'put',
    data: data
  })
}

// 删除月票
export function delPass(id) {
  return request({
    url: '/pass/pass/' + id,
    method: 'delete'
  })
}
